package cn.hfatec.shms.web.amb.ykBmyj.service;

import java.util.List;
import java.util.HashMap;


import cn.hfatec.shms.advice.annotation.SqlServerSource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hfatec.base.BaseDao;
import cn.hfatec.Page;
import cn.hfatec.Table;
import cn.hfatec.shms.web.amb.ykBmyj.model.YkBmyj;
import cn.hfatec.shms.web.amb.ykBmyj.dao.YkBmyjDao;
import cn.hfatec.shms.web.amb.ykBmyj.model.YkBmyjParams;

import javax.annotation.Resource;



/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
@Service("YkBmyjService")
public class YkBmyjService {

    public static final String BEAN_ID = "YkBmyjService";

    //注入Dao层
    @Resource(name = "YkBmyjDao")
    private YkBmyjDao ykBmyjDao;

    //注入BaseDao
    @Resource(name = "BaseDao")
    private BaseDao baseDao;

    /**
     *
     * 查询数据
     *
     * @param ykBmyjParams

     *
     */
    @Transactional
    @SqlServerSource
    public List queryYkBmyjTable(YkBmyjParams ykBmyjParams){

        HashMap<String, Object> params = new HashMap<String, Object>();
        params.put("params", ykBmyjParams);
        return baseDao.queryList("queryYkBmyj", params);
    }


}